import request from './network.js'

// 获取客服电话
export function getServiceTel(header) {
	return request({
		url: '/advert/getServiceTel',
		headers: header,
		method: 'POST'
	})
}

// 获取统计权限
export function ipPhone(header) {
	return request({
		url: '/carOrder/ipPhone',
		headers: header,
		method: 'POST'
	})
}

// 获取统计数据
export function getStatistics(prams, header) {
	return request({
		url: '/carOrder/homepageStatistics',
		headers: header,
		method: 'POST',
		data: {
			"data": prams
		}
	})
}

// 提交意见反馈
export function addFeedback(imagePaths, data, header) {
	return request({
		url: '/shopUser/savefeedback',
		headers: header,
		method: 'POST',
		data: {
			imagePaths,
			data
		}
	})
}
